import http from "@/common/http.js"

export const warning = (url, method, data) => {
	return http({
		url: '/api/alarm' + url
	}, method, data)
}
export const equipment = (url, method, data) => {
	return http({
		url: '/api/equip' + url,
	}, method, data)
}
export const updated = (url, method, data) => {
	return http({
		url: '/api/equip' + url,
		timeout:5*60*1000
	}, method, data)
}
export const updates = (url, method, data) => {
	return http({
		url: '/api/equipUpgradeTask' + url,
	}, method, data)
}
export const enums = () => {
	return http({
		url: '/api/enum/all'
	})
}
export const factuerManage = (url, method, data) => {
	return http({
		url: '/api/organization' + url
	}, method, data)
}
export const users = (url, method, data) => {
	return http({
		url: '/api/user' + url
	}, method, data)
}

export const operator = (url, method, data) => {
	return http({
		url: '/api/operator' + url
	}, method, data)
}
export const partType = (url, method, data) => {
	return http({
		url: '/api/partType' + url
	}, method, data)
}

export const softwareVersion = (url, method, data) => {
	return http({
		url: '/api/softwareVersion' + url
	}, method, data)
}
export const loglevel = (url, method, data) => {
	return http({
		url: '/api/loglevel' + url
	}, method, data)
}
export const login = (url, method, data) => {
	return http({
		url: '/api/wx' + url
	}, method, data)
}
export const models = (url, method, data) => {
	return http({
		url: '/api/model' + url
	}, method, data)
}

export const logextrace = (url, method, data) => {
	return http({
		url: '/api/logextraction' + url
	}, method, data)
}

// 广告
export const appletAd = (url, method, data) => {
	return http({
		url: '/api/appletAd' + url
	}, method, data)
}